package com.dlc.shop.systemtest.api.login;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dlc.shop.bean.param.UserManagerReqParam;
import com.dlc.shop.common.util.Json;
import com.dlc.shop.systemtest.constants.Constant;
import com.dlc.shop.systemtest.util.HttpUtil;

import java.util.List;

/**
 * @author Tu
 */
public class MemberShipApi {
    public static List<UserManagerReqParam> lishUser(){
        String url = Constant.PLATFORM_URL+"admin/user/userPage";
        return JSON.parseArray(JSON.toJSONString(Json.parseObject(JSON.toJSONString(HttpUtil.get(url, Page.class)), Page.class).getRecords()), UserManagerReqParam.class);
    }


}
